/*淘宝推广活动列表 **/
class ActivityModelEntity {
  List<ActivityModelData> data;
  int code;
  String msg;

  ActivityModelEntity({this.data, this.code, this.msg});

  ActivityModelEntity.fromJson(Map<String, dynamic> json) {
    if (json['data'] != null) {
      data = new List<ActivityModelData>();
      (json['data']['list'] as List).forEach((v) {
        data.add(new ActivityModelData.fromJson(v));
      });
    }
    code = json['code'];
    msg = json['msg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data']['list'] = this.data.map((v) => v.toJson()).toList();
    }
    data['code'] = this.code;
    data['msg'] = this.msg;
    return data;
  }
}

class ActivityModelData {
// taobao_activity_id	淘宝推广活动ID
// taobao_activity_name	淘宝推广活动名称
// icon	淘宝推广活动图标
// is_show	淘宝推广活动是否显示
// tb_activity_id	淘宝推广活动官方ID(备用)
// sort	排序

  String taobao_activity_id;
  String taobao_activity_name;
  String icon;
  String is_show;
  String tb_activity_id;
  String sort;

  ActivityModelData(
      {this.taobao_activity_id,
      this.taobao_activity_name,
      this.icon,
      this.is_show,
      this.tb_activity_id,
      this.sort});

  ActivityModelData.fromJson(Map<String, dynamic> json) {
    taobao_activity_id = json['taobao_activity_id'];
    taobao_activity_name = json['taobao_activity_name'];
    icon = json['icon'];
    is_show = json['is_show'];
    tb_activity_id = json['tb_activity_id'];
    sort = json['sort'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['taobao_activity_id'] = this.taobao_activity_id;
    data['taobao_activity_name'] = this.taobao_activity_name;
    data['icon'] = this.icon;
    data['is_show'] = this.is_show;
    data['tb_activity_id'] = this.tb_activity_id;
    data['sort'] = this.sort;
    return data;
  }
}
